Class ReflectionHelper

java.lang.Object
net.minecraftforge.fml.util.ObfuscationReflectionHelper
jeresources.util.ReflectionHelper

public class ReflectionHelper extends net.minecraftforge.fml.util.ObfuscationReflectionHelper
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraftforge.fml.util.ObfuscationReflectionHelper

    net.minecraftforge.fml.util.ObfuscationReflectionHelper.UnableToAccessFieldException, net.minecraftforge.fml.util.ObfuscationReflectionHelper.UnableToFindFieldException, net.minecraftforge.fml.util.ObfuscationReflectionHelper.UnableToFindMethodException, net.minecraftforge.fml.util.ObfuscationReflectionHelper.UnknownConstructorException
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Class
     
    static <T, E> T[]
    getPrivateArrayValue(Class<? super E> classToAccess, E instance, String fieldName)
     
    static <T, E> List<T>
    getPrivateArrayValueAsList(Class<? super E> classToAccess, E instance, String fieldName)
     
    static <T> void
    injectIntoFields(Class annotationClass, Class<T> instanceClass, T instance)
     
    static boolean
    isInstanceOf(Class clazz, Class checkClass)
     

    Methods inherited from class net.minecraftforge.fml.util.ObfuscationReflectionHelper

    findConstructor, findField, findMethod, getPrivateValue, remapName, setPrivateValue

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ReflectionHelper

      public ReflectionHelper()
  • Method Details

    • findClass

      public static Class findClass(String name)
    • isInstanceOf

      public static boolean isInstanceOf(Class clazz, Class checkClass)
    • injectIntoFields

      public static <T> void injectIntoFields(Class annotationClass, Class<T> instanceClass, T instance)
    • getPrivateArrayValueAsList

      public static <T, E> List<T> getPrivateArrayValueAsList(Class<? super E> classToAccess, E instance, String fieldName)
    • getPrivateArrayValue

      public static <T, E> T[] getPrivateArrayValue(Class<? super E> classToAccess, E instance, String fieldName)